{template common/header}
<style type="text/css">
.tb-prop li {
float: left;
line-height: 20px;
margin: 0 4px 4px 0;
padding: 1px;
position: relative;
vertical-align: middle;
}
.J_TSaleProp li {
line-height: 16px;
}
.tb-prop li.tb-selected a {
border: 2px solid #be0106;
margin: -1px;
}
.tb-prop li a {
background-color: #fff;
border: 1px solid #b8b7bd;
color: #000;
float: left;
min-width: 10px;
padding: 0 9px;
text-align: center;
text-decoration: none;
white-space: nowrap;
width: auto !important;
}
.tb-prop li span {
padding-left: 1px;
}
.tb-prop .tb-selected i {
background-position: -62px -16px;
background-repeat: no-repeat;
bottom: 0;
display: block;
height: 12px;
overflow: hidden;
position: absolute;
right: 0;
text-indent: -99em;
width: 12px;
}
.tb-selected i{
background-image:url("source/plugin/aljtg/images/TB1UN3XHpXXXXcvXXXXBJc1_FXX-114-30.png");
}
</style>
<script src="static/js/calendar.js" type="text/javascript" reload="1"></script>
<h3 class="flb">
	<em>{lang aljbd:tg40}</em>
		<span><a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']');" title="{lang close}">{lang close}</a></span>
	
</h3>
<iframe name="formsubmit" style="display:none"></iframe>
<form id="addbc" method="post"  action="{if $good['price1']}{if $config['isextcredit'] && $config['extcredit']}plugin.php?id=aljbd&act=tradesubmit&sid={$gid}{else}plugin.php?id=aljbd:trade&sid={$gid}{/if}{/if}">
<input name="formhash" type="hidden" value="{FORMHASH}" />
		<div class="c">
        
        
        	<table cellspacing="0" cellpadding="0" border="0">
                
  				<tbody>
					
				<tr>
					<td><span style="color:red;"></span>{lang aljbd:tg41}</td>
    				<td width="180" height="30">$good['name']</td>
                </tr>
				<tr>
					<td><span style="color:red;"></span>{lang aljbd:tg42}</td>
    				<td width="180" height="30">
					{if $good['price1']}{if $config['isextcredit'] && $config['extcredit']}{$good['price1']}{$_G['setting']['extcredits'][$config['extcredit']]['title']}{else}&#165;{$good['price1']}{/if}{/if}
					</td>
                </tr>
				{loop $goodattrs $name $thisattr}
				<tr>
					
					<td><span style="color:red;"></span>{$typename[$name]}&#65306;<input type="hidden" value="" name="typename[$name]" id="typename_{$name}"></td>
					<td width="180" height="30">
						<span class="tb-prop">
							<ul class="tm-clear J_TSaleProp attr_{$name}">
								{loop $thisattr $attr}
								<li class="" data="{$attr['mid']}" datatype="{$name}">
								<a href="javascript:;">
								<span>$attr['content']</span>
								</a>
								<i></i>
								</li>
								{/loop}
							 </ul>
						</span>
					</td>
				</tr>
				{/loop}
				<tr>
					<td><span style="color:red;"></span>{lang aljbd:tg43}</td>
    				<td width="180" height="30"><input type="text" name="num" value="1" class="px" style="width:30px;" ></td>
                </tr>
				<tr>
					<td><span style="color:red;"></span>{lang aljbd:sc71}</td>
    				<td width="360" height="30">$user['addr'](<a style="color: #105CB6;" href="plugin.php?id=aljbd&act=addr&formhash={FORMHASH}&gid={$good['id']}" onclick="showWindow('editaddr',this.href)">{lang aljbd:sc72}</a>)</td>
                </tr>
				<tr>
					<td><span style="color:red;"></span>{lang aljbd:sc73}</td>
    				<td width="360" height="30">$user['tel'](<a style="color: #105CB6;" href="plugin.php?id=aljbd&act=addr&formhash={FORMHASH}&gid={$good['id']}" onclick="showWindow('editaddr',this.href)">{lang aljbd:sc74}</a>)</td>
                </tr>
				<tr>
					<td>{lang aljbd:remarks}</td>
					<td width="180" height="30"><input type="text" name="remarks" value="" class="px" style="width:280px;"></td>
				</tr>
            </tbody></table>
	
</div>
<p class="o pns">
	<button type="submit" name="submit" value="1" class="pn pnc"><strong>{lang aljbd:tg44}</strong></button>
</p>
</form>
<script type="text/javascript">
jq('.J_TSaleProp li').click(function(){
	jq('.attr_'+jq(this).attr('datatype')+' li').removeClass('tb-selected');
	jq(this).addClass('tb-selected');
	jq('#typename_'+jq(this).attr('datatype')).val(jq(this).attr('data'));

});
</script>
{template common/footer}